package com.zy.mydemo.common.mapper;

import com.zy.mydemo.common.entity.AuthEntity;
import com.zy.mydemo.common.entity.AuthParamEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author:zhongyong
 * @Description：
 * @Date：Create in 2020/05/08
 */
@Mapper
public interface AuthMapper {

    /**
     * 插入一条权限
     *
     * @param authEntity
     * @return
     */
    int insertAuth(AuthEntity authEntity);

    /**
     * 获取权限列表
     *
     * @param param
     * @return
     */
    List<AuthEntity> getList(AuthParamEntity param);
}
